package com.oscarmovie.model;

import java.util.Date;

public class Comment implements Comparable<Comment>{
	private int id;
	private String content;
	private Date datetime;
	private Account account;
	private boolean sendToWeibo;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDatetime() {
		return datetime;
	}
	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public int compareTo(Comment o) {
		if(this.datetime.after(o.getDatetime()))
			return -1;
		else if(this.datetime.before(o.getDatetime()))
			return 1;
		else
			return 0;
	}
	public void setSendToWeibo(boolean sendToWeibo) {
		this.sendToWeibo = sendToWeibo;
	}
	public boolean isSendToWeibo() {
		return sendToWeibo;
	}
	
	
}
